<? if(!empty($news)): ?>
	<h1>Izmena komentara #<?= $comment['CustomerComment']['id']?></h1>
<? else: ?>
	<h1>Novi komentar</h1>
<? endif; ?>

<style type="text/css">
form img{background:#ddd;padding:5px;border:1px solid #ccc}
</style>

<?= $this->Form->create('CustomerComment', array('url'=>'/admin_comments/save', 'enctype'=>'multipart/form-data')) ?>
	<?= $this->Form->hidden('id', array('value'=>@$comment['CustomerComment']['id'])) ?>
	
	<?= $this->Form->label('name', "Ime Klijenta:") ?>
	<?= $this->Form->text('name', array('value'=>@$comment['CustomerComment']['name'], 'class'=>'large')) ?>
	
	<?= $this->Form->label('file', "Slika Klijenta:") ?>
	<?= $this->Form->hidden('image', array('value'=>@$comment['CustomerComment']['image'])) ?>
	<?= $this->Html->image('customers/' . @$comment['CustomerComment']['image'] . "?h=100", array('style'=>'float:left;margin-right:5px')) ?>
	<?= $this->Form->file('file') ?>
	
	<br clear="all">
	<?= $this->Form->label('company', "Firma:") ?>
	<?= $this->Form->text('company', array('value'=>@$comment['CustomerComment']['company'], 'class'=>'large')) ?>
	
	<?= $this->Form->label('comment', "Komentar:") ?>
	<?= $this->Form->textarea('comment', array('value'=>@$comment['CustomerComment']['comment'], 'maxlength'=>255)) ?>

	<br clear="all">
	<?= $this->Form->submit('Sačuvaj', array('div'=>false)) ?>
	<?= $this->Form->submit('Poništi', array('onclick'=>"location.href='/admin_news'", 'type'=>'button', 'div'=>false)) ?>
<?= $this->Form->end();
